import Vue from 'vue';
import VueRouter from 'vue-router';
import {routers,baseRouter} from './router/router.js';
import iView from 'iview';
import 'iview/dist/styles/iview.css';

Vue.use(VueRouter);
Vue.use(iView);

const RouterConfig = {
  routes: routers
};
const router = new VueRouter(RouterConfig);

new Vue({
  el: '#app',
  router: router,
  render: h => h(baseRouter)
});
